<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/white/common/taglibs.jsp"%>
<%@include file="/white/common/common.jsp"%>

<html>
	<body>

		<div id="div_title_watch">
			<h3>
				浏览&nbsp;<s:label name="workflow.name"/>&nbsp;<s:label name="workflowNode.name"/>&nbsp;工作
			</h3>
		</div>


		<!-- Data Form -->
		<%@include file="/white/common/message.jsp"%>
		<s:form method="post" action="worklistAction!showWorkWatchDetail"
			theme="simple">
			<s:token />
			<table cellpadding="0" cellspacing="0" class="t_form">

				<tr>
					<td width="15%">
						工作流实例ID:
					</td>
					<td>
						<s:property value="workflowInstance.workflowInstanceId" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						所属工作流:
					</td>
					<td>
						<s:property value="workflow.name" />
					</td>
					<td width="15%">
						所在节点:
					</td>
					<td>
						<s:property value="workflowNode.name" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						操作人:
					</td>
					<td>
						<c:if test="${workflowInstance.owner eq '-10000'}">
								默认操作员
						</c:if>
					</td>
					<td width="15%">
						状态:
					</td>
					<td>
						<s:property value="workflowInstance.status" />
					</td>
				</tr>

			</table>
			<div style="width: 40%">				
				<h4>
				实例参数列表:
			    </h4>
					
				<table cellpadding="0" cellspacing="0" class="t_list">
					<tr>
						<th>
							参数名称
						</th>
						<th>
							默认值
						</th>
						<th>
							参数类型
						</th>
						<th>
							当前值
						</th>
					</tr>
					<s:iterator value="contextList" status="sindex">
						<tr>
							<td>
								<s:property value="PARAM_NAME" />
							</td>
							<td>
								<s:property value="DEFAULT_VALUE" />
							</td>
							<td>
								<s:property value="PARAM_TYPE" />
							</td>
							<td>
								<s:property value="PARAM_VALUE" />
							</td>
						</tr>
					</s:iterator>
				</table>				
				<h4>
				节点参数列表:
			    </h4>
					
				<table cellpadding="0" cellspacing="0" class="t_list">
					<tr>
						<th>
							参数名称
						</th>
						<th>
							默认值
						</th>
						<th>
							参数类型
						</th>
						<th>
							当前值
						</th>
					</tr>
					<s:iterator value="nodeContextList" status="sindex">
						<tr>
							<td>
								<s:property value="PARAM_NAME" />
							</td>
							<td>
								<s:property value="DEFAULT_VALUE" />
							</td>
							<td>
								<s:property value="PARAM_TYPE" />
							</td>
							<td>
								<s:property value="PARAM_VALUE" />
							</td>
						</tr>
					</s:iterator>
				</table>				
			</div>
			<div style="width: 40%">				
				<h4>
				流转记录:
			    </h4>
					
				<table cellpadding="0" cellspacing="0" class="t_list">
					<tr>
						<th>
							节点名称
						</th>
						<th>
							处理人
						</th>

					</tr>
					<s:iterator value="workflowNodeInstanceMapList" status="sindex">
						<tr>
							<td>
								<s:property value="WORKFLOW_NODE_NAME" />
							</td>
							<td>
								<c:if test="${WORKER eq '-10000'}">
									默认操作员
								</c:if>
							</td>
						</tr>
					</s:iterator>
				</table>				
			</div>
			<div id="div_button">
			    已做操作:
			    <s:label name="workflowPath.displayName"/>
				<br /><br />
				<s:submit key="返回"
					onclick="form.action='worklistAction!showWorkList.action';return true;"
					cssClass="input_button" />
			</div>

			<s:hidden name="searchString" />

		</s:form>

		<!--Data Form End -->

	</body>

</html>